import ala from 'ala'




/**
 *  左边条件,过滤条件
 * @returns 
 */
export async function condition() {
    var condition = ala.localGet('supportCondition')
    if (condition) {
        return condition
    }
    condition = {}
    // 选择项目
    condition.projects = await ala.httpGet('api/ProjectConditionService/SelectProject')
    // 类型
    condition.types = await ala.httpId('api/ProjectConditionService/Enums', 'PmType')

    // 下拉数据延迟加载
    // 状态
    condition.statuss = await ala.httpId('api/ProjectConditionService/Enums', 'PmStatus')
    // 优先级
    condition.priorities = await ala.httpId('api/ProjectConditionService/Enums', 'PmPriority')

    // 完成方式
    condition.completes = await ala.httpId('api/ProjectConditionService/Enums', 'PmCompleteWay')

    // 处理人
    condition.employees = await ala.httpGet('api/ProjectConditionService/Employee')

    ala.localSet('supportCondition', condition)
    return condition
}





